package com.dragon.mmochat.message;

import com.dragon.mmochat.MmochatConstant;
import com.skymobi.buffer.SkymobiBuffer;
import com.skymobi.message.SkymobiProtocolMessage;

public class Mmochat_4_9S extends SkymobiProtocolMessage {
	private int mapId;
	private short x;
	private short y;

	public Mmochat_4_9S() {
		setMsgCode(MmochatConstant.MSGCODE_MMOCHAT_S_4_9);
	}

	@Override
	protected void encodeBody(SkymobiBuffer out) {
		out.putInt(mapId);
		out.putShort(x);
		out.putShort(y);
	}

	public void setMapId(int mapId) {
		this.mapId = mapId;
	}

	public void setX(short x) {
		this.x = x;
	}

	public void setY(short y) {
		this.y = y;
	}

}